import {configureStore} from '@reduxjs/toolkit';
import reduxLogger from 'redux-logger';
import voteReducer from './features/toolSlice';
import {thunk} from 'redux-thunk';



const customMiddleware = [thunk,reduxLogger];

const toolKitStore = configureStore({
    reducer: {
        vote: voteReducer,
    },
    middleware: (getDefaultMiddleware)=>[
        ...customMiddleware
    ]

})

export default toolKitStore;